import request from '@/utils/request'
import {encodeParams} from '@/utils'

//获取地区列表
export function getRegionList() {
    return request({
      url: '/api/logistics/getRegionList',
      method: 'GET'
    })
  }

//获取仓库列表
export function getStoreList(data) {
    return request({
      url: '/api/logistics/getStoreList',
      method: 'GET',
      params:data
    })
  }

//获取物流公司列表
export function getLogisticsList(data) {
  return request({
    url: '/api/logistics/getLogisticsList',
    method: 'GET',
    params:data
  })
}

//获取物流公司编码
export function getLogisticsCodes() {
  return request({
    url: '/api/logistics/getLogisticsCodes',
    method: 'GET'
  })
}

//获取物流信息
export function editLogistics(data) {
  return request({
    url: '/api/logistics/editLogistics',
    method: 'GET',
    params:data
  })
}

// 保存物流公司
export function saveLogistics(data) {
  return request({
    url: '/api/logistics/saveLogistics',
    method: 'post',
    data
  })
}
